<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>

<div id="app"></div>

<script>
    const vueOpt = {
        data(){
            return {
                count: 1
            }
        }
    }

    const app = Vue.createApp(vueOpt);
    // 组件实例
    const vm = app.mount("#app");
    console.log('app:', app, 'app type:', typeof app);
    console.log('vm:',  vm, 'vm type:', typeof vm);

    console.log('vm count:', vm.count);
    console.log('vm $data count:', vm.$data.count);

    vm.count = 10
    console.log('vm count ---1:', vm.count);
    console.log('vm $data count ---1:', vm.$data.count);
</script>
</body>
</html>
